/*
 * @Author: your name
 * @Date: 2020-07-29 18:13:43
 * @LastEditTime: 2020-08-06 11:41:57
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \dcg-vue-init\src\router\modules\user.js
 */
import layout from '@/layout'
const rightRouter = {
  path: '/right',
  component: layout,
  redirect: '/right/list',
  name: '权限模块',
  meta: {
    title: 'right',
    icon: 'right',
    roles: ['admin']
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/right/list'),
      name: '权限列表',
      meta: { title: '权限列表' }
    },
    {
      path: 'edit',
      component: () => import('@/views/right/edit'),
      name: '编辑权限',
      meta: { title: 'edit right' }
    },
    {
      path: 'delete',
      component: () => import('@/views/right/delete'),
      name: '删除权限',
      meta: { title: 'add right' }
    },
    {
      path: 'add',
      component: () => import('@/views/right/add'),
      name: '添加权限',
      meta: { title: '添加权限' }
    }
  ]
}
export default rightRouter
